# Edit sources list: nano /etc/apt/sources.list # add this: deb http://ftp.debian.org/debian/ wheezy-backports main contrib non-free # ctrl-x for save and exit. # Edit preferences: nano /etc/apt/preferences # Type this: Package: * Pin: release a=wheezy-backports Pin-Priority: 900 Package: * Pin: release a=stable Pin-Priority: 800 # ctr-x # Update repo and install samba: apt-get update apt-get install samba # Edit smb.conf nano /etc/samba/smb.conf # Edit/replace/add this: client ntlmv2 auth = yes read raw = yes write raw = yes wide links=yes getwd cache=yes stat cache = yes strict sync = no use sendfile = yes large readwrite = yes oplock contention limit = 5 oplock break wait time = 100 strict allocate = yes max xmit = 131072 min receivefile size = 13638 aio read size = 64360 aio write size = 64360 aio write behind = true socket options = TCP_NODELAY SO_RCVBUF=262144 SO_SNDBUF=262144 IPTOS_LOWDELAY SO_KEEPALIVE # ctrl-x for save # Small tuning fs (Maybe help): nano /etc/fstab # Find /dev/sda4 and replace mount options (default) like this: /dev/sda4 /data ext4 noatime,data=writeback,barrier=0,nobh,errors=remount-ro 0 0